package OOPS;

class Person2 {
	String name;

	Person2() {
		System.out.println("** Person() Def Cons **");
	}

	Person2(String name) {
		System.out.println("** Person(String) Cons **");
		this.name = name;
	}
}

class Student4 extends Person2 {
	int sid;
	String email;
	long phone;

	Student4(String name) {
		super(name);
		System.out.println("** Student4(String)  Cons **");
	}

	Student4(String name, int sid) {
		super(name);
		System.out.println("** Student4(String,int)  Cons **");
		this.sid = sid;
	}

	Student4(String name, int sid, String email) {
		System.out.println("** Student4(String,int,String)  Cons **");
		this.sid = sid;
		this.name = name;
		this.email = email;
	}

	Student4(String name, int sid, String email, long phone) {
		this(name, sid, email);
		System.out.println("** Student4(String,int,String,long)  Cons **");
		// Student4(name,sid,email);
		this.phone = phone;
	}

	void show() {
		System.out.println(sid + "\t" + name + "\t" + email + "\t" + phone);
	}
}

class Test45 {
	public static void main(String str[]) {
		Student4 st = new Student4("Sri");
		st.show();
		Student4 st2 = new Student4("Nivas", 99);
		st2.show();
		Student4 st3 = new Student4("Kishore", 98, "kishore@gmail.com");
		st3.show();
		Student4 st4 = new Student4("Manish", 88, "m@gail.com", 987895353);
		st4.show();
	}
}